Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AffiliateInfo(val affiliateUser: User? = null, val affiliateChat: Chat? = null, val commissionPerMille: Int, val amount: Int, val nanostarAmount: Int? = null)

Contains information about the affiliate that received a commission via this transaction.

Link copied to clipboard
@Serializable
sealed class RevenueWithdrawalState

This object describes the state of a revenue withdrawal operation. Currently, it can be one of

Link copied to clipboard
@Serializable
data class StarTransaction(val id: String, val amount: Int, val nanostarAmount: Int? = null, val date: Instant, val source: TransactionPartner? = null, val receiver: TransactionPartner? = null)

Describes a Telegram Star transaction.

Link copied to clipboard
@Serializable
data class StarTransactions(val transactions: List<StarTransaction>)

Contains a list of Telegram Star transactions.

Link copied to clipboard
@Serializable
sealed class TransactionPartner

This object describes the source of a transaction, or its recipient for outgoing transactions. Currently, it can be one of